<?php
class AdminController extends BackEndController
{      
    public $layout = '//layouts/column1_home';
    //Фильтр доступа
    public function filters(){
        return array(
            'rights'
        );
    }
    
    public function actionIndex()
    {
        $this->render('index');
    }

    public function actionError()
    {
        $this->layout = '//layouts/column1_error';
        if($error=Yii::app()->errorHandler->error)
        {
            if(Yii::app()->request->isAjaxRequest)
                echo $error['message'];
            else
                $this->render('error', $error);
        }
    }
}
?>